package com.whmskj.xjlhsc.gongweiji.scheduling.service.imp;

import com.whmskj.xjlhbc.core.AjaxResult;
import com.whmskj.xjlhbc.core.Page;
import com.whmskj.xjlhsc.gongweiji.scheduling.mapper.SchedulingMapper;
import com.whmskj.xjlhsc.gongweiji.scheduling.pojo.SchedulingDTO;
import com.whmskj.xjlhsc.gongweiji.scheduling.pojo.SchedulingVO;
import com.whmskj.xjlhsc.gongweiji.scheduling.service.ISchedulingService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author jiaruchun
 * @date 2025-09-24 16:07
 */
@Slf4j
@Service
public class SchedulingServiceImpl implements ISchedulingService {
    @Autowired
    private SchedulingMapper schedulingMapper;

    @Override
    public AjaxResult scheduling(SchedulingDTO schedulingDTO) {
        List<SchedulingVO> schedulingVOList = schedulingMapper.getSchedulingVOList(schedulingDTO);
        log.info("schedulingVOList:{}", schedulingVOList);
        return Page.getDataTable(schedulingVOList);
    }
}
